Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for get in set command 207 #1160

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sanjaydev02
Copy link

@sanjaydev02 sanjaydev02 commented Oct 20, 2024

This draft PR introduces support for the GET option in the SET command. When using SET with the GET option, the command now returns the previous value of the key if it exists before updating it with the new value. If the key does not exist, nil is returned, and the new value is stored. Additionally, TTL handling (e.g., EX, PX, KEEPTTL) remains functional with this update. This PR is still a work in progress, and I'm actively learning throughout the process. Apologies for the slow progress, and feedback is greatly appreciated!

@sanjaydev02
Copy link
Author

@apoorvyadav1111 hi i have written test for this get option,what is the next step?

@apoorvyadav1111 apoorvyadav1111 self-assigned this Oct 20, 2024
@apoorvyadav1111
Copy link
Contributor

Hi, please add test in websocket, and http folder as well. Additionally, please add unit tests for this change. Please mark it as ready for review so that we are notified about any updates.

Thanks

@sanjaydev02
Copy link
Author

@apoorvyadav1111 ok thanks

@apoorvyadav1111
Copy link
Contributor

Hi @sanjaydev02 , Hope you are well. I am interested in knowing if any pending issues or further steps are required before it can be merged.

Thank you!

Best,
Apoorv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants